package com.jzhao.jpre.model;

import java.math.BigDecimal;

public class MonthTranRecord {
	private String acctNo;
	private String tranTimes;
	private BigDecimal totalAmount;
	private String deductRatio;
	
	public String getDeductRatio() {
		return deductRatio;
	}
	public void setDeductRatio(String deductRatio) {
		this.deductRatio = deductRatio;
	}
	public String getAcctNo() {
		return acctNo;
	}
	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}
	public String getTranTimes() {
		return tranTimes;
	}
	public void setTranTimes(String tranTimes) {
		this.tranTimes = tranTimes;
	}
	public BigDecimal getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}
	
	public String getDeductedAmount() {
		return totalAmount.multiply(new BigDecimal(deductRatio)).setScale(2, BigDecimal.ROUND_UP).toString();
	}
}
